package com.ruoyi.web.controller.tzzl;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.tzzl.service.IWzConsumptionFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 友币消耗配置Controller
 *
 * @author yong
 * @date 2022-12-20
 */
@RestController
@RequestMapping("/tzzl/friend")
public class WzConsumptionFriendController  extends BaseController {
    @Autowired
    private IWzConsumptionFriendService wzConsumptionFriendService;

    /**
     * 查询友币消耗配置
     */
    @GetMapping("/config")
    public AjaxResult config()
    {
        return AjaxResult.success(wzConsumptionFriendService.getById(1));
    }

}
